class ParamNormsController < ApplicationController

  active_scaffold :param_norm

  def check_param_valid
    param_norm = ParamNorm.find(params[:id])
    if(params[:resoult].to_f > param_norm.max_norm || params[:resoult].to_f < param_norm.min_norm)
      render :text => "<p style=\"color:red;\">"+param_norm.name+"</p>"
    else
      render :text => "<p style=\"color:green;\">"+param_norm.name+"</p>"
    end
  end

end
